package com.mentalhealthplatform.studentV3.repository;

import com.mentalhealthplatform.appModels.Message;
import org.jetbrains.annotations.NotNull;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;
import java.util.Optional;
import java.util.UUID;

/**
 * @author Pear
 */
public interface MessageRepositoryV3 extends JpaRepository<Message, Long> {

    List<Message> findByStudentId(UUID studentId);

    @Override
    @NotNull
    Optional<Message> findById(@NotNull Long id);
}
